

#ifndef _SHELL_RESALLTASKSV2_MESSAGE_H_
#define _SHELL_RESALLTASKSV2_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "TaskBeanV2.h"
//#include <vector>
using namespace std;

class ResAllTasksV2Message : public Message
{
	public:
	ResAllTasksV2Message();
	~ResAllTasksV2Message();
	void reset();
	ResAllTasksV2Message* clone();
	static const int _ID;
	//所有任务,版本2
	vector<TaskBeanV2*> allTasks;
	//江湖奇遇完成数量
	int32 adventureAlreadyCount;
	//江湖奇遇任务总数
	int32 adventureTotalCount;
	//强制完成的次数
	int32 forceFinishTime;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
